package com.kgc.itrip.common;

/***
 * 常量类 放置一些常量
 */
public class Constants {

    //默认起始页
    public static final Integer DEFAULT_PAGE_NO = 1;
    //默认页大小
    public static final Integer DEFAULT_PAGE_SIZE = 10;

    public static class PAYTYPE {
        public static final Integer AIL_PAY = 1;
        public static final Integer WX_PAY  = 2;
        public static final Integer OFFLINE_PAY  = 3;
    }

    /**
     * 预定端0:WEB端 1：手机端 2：其他客户端
     */
    public static class BOOKTYPE {
        public static final Integer PC = 0;
        public static final Integer MOBILE  = 1;
        public static final Integer OTHER  = 2;
    }

    /**
     * 会话超时时间
     */
    public final static int SESSION_TIMEOUT=2*60*60;//默认2h


    /**
     * 订单的状态 0：待支付 1：已取消 2：支付成功 3：已消费 4：已点评
     */
    public static class ORDER_STATUS {
        public static final Integer TO_PAY = 0;
        public static final Integer CANCEL  = 1;
        public static final Integer PAY_SUCCESS  = 2;
        public static final Integer CONSUMED  = 3;
        public static final Integer COMMENTED  = 4;
    }
    /**
     * 图片的类型
     */
    public static class IMAGE_TYPE{
        //酒店图片
        public static final String HOTEL_IMAGE = "0";
        //房间图片
        public static final String ROOM_IMAGE  = "1";
        //品论图片
        public static final String COMMENT_IMAGE  = "2";
    }
    /**
     * 是否激活
     */
    public static class ACTIVATED{
        //激活
        public static final Integer IS_ACTIVATED = 1;
        //未激活
        public static final Integer NOT_ACTIVATED  = 0;
    }

    /**
     * 是否为商圈
     */
    public static class ISTRADEINGAREA{
        //是商圈
        public static final Integer IS_TRADEAREA = 1;
        //不是商圈
        public static final Integer NOT_TRADEAREA  = 0;
    }

    public static class CIYTYPE{
        /*是热门城市*/
        public static Integer IS_HOT = 1;
        /*不是热门城市*/
        public static Integer IS_NOT_HOT = 0;
    }

    public static class ACCOUNT_ACTIVE_PREFIX{
        /*短信激活码前缀*/
        public static String SMS_PREFIX = "smsActiveCode:";
        /*邮件激活码前缀*/
        public static String EMAIL_PREFIX = "emailActiveCode:";
    }

    public static class Solr_Core_Name{
        /*solr配置的core的名称*/
        public static String HOTEL_CORE = "hotel";
    }

    /**
     * 用户的状态类
     */
    public static class USER_STATUS{
        //未激活
        public static final Integer NO_ACTIVED = 0;
        //已激活
        public static final Integer ACTIVED = 1;
    }

    /**
     * 短信模板类
     */
    public static class SMS_PARAMS{
        /*激活账户的短信模板*/
        public static final String ACCOUNT_ACTIVED_TEMPLATE = "1";
        /*激活验证码有效时间*/
        public static final long SMS_TIMEOUT = 30*60;

    }


}
